angular.module("config")
    .config(function ($routeProvider) {
        $routeProvider
            .when("/", {
                templateUrl: "./templates/index.html",
                controller: "indexController",
            })
            .when("/showFood",{
                templateUrl: "./templates/food.html",
                controller:"showFoodsController"
            })
            .when("/order", {
                templateUrl: "./templates/order.html",
                controller: "orderController"
            })
            .when("/complaint", {
                templateUrl: "./templates/complaint.html",
                controller: "complaintController"
            })
            .when("/personal", {
                templateUrl: "./templates/personal.html",
                controller: "personalController"
            })
            .when("/regist",{
                templateUrl: "./templates/regist.html",
                controller:"registController"
            })
            .otherwise({redirectTo: "/"});
    });